<?php

use Illuminate\Foundation\Inspiring;
use Illuminate\Support\Facades\Artisan;
use Illuminate\Support\Str;

/*
|--------------------------------------------------------------------------
| Console Routes
|--------------------------------------------------------------------------
|
| This file is where you may define all of your Closure based console
| commands. Each Closure is bound to a command instance allowing a
| simple approach to interacting with each command's IO methods.
|
*/

Artisan::command('inspire', function () {
    $this->comment(Inspiring::quote());
})->describe('Display an inspiring quote');

Artisan::command('demo', function () {
    $this->info(Str::limit('我的中国name是陈圣文', 5));
    $this->info(Str::words('我的 中国 name 是 陈圣文', 3, '...'));

    $this->info((string) Str::orderedUuid());
    $this->info((string) Str::uuid());

    $this->info(Str::random(40));
})->describe('temp demo');
